Lagrange's theorem examples